package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.JjdBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface JjdService extends BaseService<JjdBean> {

	JjdBean getJjdBeanById(String id) throws Exception;
	
	void removeJjdBeanById(String id) throws Exception;
	
	void removeJjdBeanByIds(String ids) throws Exception;
	
	JjdBean saveJjdBean(JjdBean crm) throws Exception;
	
	JjdBean updateJjdBean(JjdBean crm) throws Exception;
	
	Page<JjdBean>  findJjdBeanByCond(JjdBean bean,
			Page<JjdBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveJjdBeanExt(String sql) throws Exception;

	String findJjdBeanExtCreate(String tableName) throws Exception;

	String findJjdBeanExtEdit(String tableName, String id)
			throws Exception;

	String findJjdBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasJjdBeanExtData(String tableName, String id)
			throws Exception;
}